<?php
/**
 * Connect to Database (MySQL)
 * Set UTF8 for sql
 */
$connect = mysql_connect("localhost:3306", "team02", "team02") or die("Không thể kết nối tới database");
mysql_query("SET character_set_results=utf8", $connect);
mb_language('uni');
mb_internal_encoding('UTF-8');
mysql_selectdb('demomvc', $connect);
mysql_query("SET NAMES 'UTF8'", $connect);